"
Do me a favor" means "no", with an attitude. Similar in meaning to the outdated phrase, "
talk to the hand". When one person asks another person to do something undesirable, the response may be, "
do me a favor". No specific favor is given, but the recipient is free to imagine one (
go jump in the lake, etc.).